<div ng-controller="GetUserCtrl">
<div class="panel panel-default">

 	<div class="panel-body" style="padding-top: 0;padding-bottom: 0;">
  		<div class="nav navbar-nav m-t">
 			            
            <span><b>系统设置</b></span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>用户管理</b> </span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>用户列表</b></span> 
         </div>
        <!-- nabar right -->
        <ul class="nav navbar-nav navbar-right">          
          <li class="dropdown" dropdown>
            <a href class="dropdown-toggle clear" dropdown-toggle>
              <span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
                <img src="img/a0.jpg" alt="...">
                <i class="on md b-white bottom"></i>
              </span>
              <span class="hidden-sm hidden-md"><b>{{namedata}}</b></span> <b class="caret"></b>
            </a>
            <!-- dropdown -->
            <ul class="dropdown-menu animated fadeInRight w">  
              <li>
                <a ui-sref="app.user.info">用户信息</a>
              </li>       
              <li class="divider"></li>
              <li>
                <a ui-sref="access.signin" ng-click="logout()">登出</a>
              </li>
            </ul>
            <!-- / dropdown -->
          </li>
        </ul>
 	</div>
</div>
<div class="panel panel-default m-t-n-md">
	<div class="panel-body" >
		<div class="pull-right" >
			<a class="btn btn-info btn-sm btn-rounded" ng-controller="NewUserModalCtrl">
				<script type="text/ng-template" id="newuserModalContent.html">
	                 <div ng-include="'tpl/sys/user/newmodal.html'"></div>
	            </script> 
	            <span ng-click="open()">新增</span> 
			</a>
		</div>
		<table class="table" style="border: none;">
			<thead>
				<tr>
					<th>账号</th>
					<th>所属学校</th>
					<th>姓名</th>
					<th>电话</th>
					<th>创建时间</th>	
					<th>操作</th>				
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="aaData in aaData">
					<td>
						{{aaData.uname}}
					</td>
					<td>
						{{aaData.school}}
					</td>
					<td>
						{{aaData.name}}
					</td>
					<td>
						{{aaData.phone}}
					</td>
					<td>
						{{aaData.create_time}}
					</td>
					<td>
						<a class="btn btn-xs btn-info" ng-controller="EditUserModalCtrl">
							<script type="text/ng-template" id="edituserModalContent.html">
				                 <div ng-include="'tpl/sys/user/editmodal.html'"></div>
				            </script> 
				            <span ng-click="edituser(aaData)">编辑</span>
						</a>
						<a class="btn btn-xs btn-success" ui-sref="app.sys.usersignauth({userid:aaData.user_id,page:currentPage})">分配权限</a>
						<a class="btn btn-xs btn-danger" ng-controller="DelUserModalCtrl">
							<script type="text/ng-template" id="deluserModalContent.html">
				                 <div ng-include="'tpl/sys/user/delmodal.html'"></div>
				            </script> 
				            <span ng-click="deluser(aaData.uname)">删除</span>
						</a>
					</td>
					
				</tr>
				
			</tbody>
		</table>
		<div class="text-center">
          <pagination boundary-links="true" total-items="totalItems"
          ng-model="currentPage" class="pagination-sm embed-responsive-item"
          previous-text="上一页"
          next-text="下一页"
          first-text="首页"
          last-text="尾页"
          max-size="maxSize"
          rotate="false" num-pages="numPages" ng-change="pageChanged()">
	      </pagination>
	    </div>  
	</div>



    </div>
</div>